//package com.matt.repository.impl;
//
//import com.matt.foundation.constant.PermissionConstant;
//import com.matt.foundation.query.ChildrenActiveQuery;
//import com.matt.foundation.vo.ChildActivityVo;
//import com.matt.repository.ChildActivityRepository;
//import com.matt.repository.base.BaseNativeSqlRepository;
//import org.apache.commons.lang.StringUtils;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
//@Service
//public abstract class ChildActivityRepositoryImpl extends BaseNativeSqlRepository implements ChildActivityRepository {
//
//    @Override
//    public  List<ChildActivityVo> findByQueryNew(ChildrenActiveQuery query, boolean b){
//        String querySql = String.format("select c.id as id, c.name as name, c.baseTime as baseTime, (SELECT count(rc.childrenId) from rel_classes_children rc where c.id = rc.classesId) AS studentNum, " +
//                " c.remark as remark, c.limitNum as limitNum, c.created as created, c.inChargeTeacherName as inChargeTeacherName, c.beginMonth as beginMonth, c.endMonth as endMonth, c.category as category,c.deleted as deleted " +
//                " from classes c " +
//                " where 1=1");
//
//    }
//
//    @Override
//    public  Long findCountByQueryNew(ChildrenActiveQuery query){
//
//    }
//}
